#include <REGX52.H>
#include <Buzzer.h>
#include <Delay.h>
#include <Key.h>
#include <Nixie.h>
#include <Timer0.h>
sbit LED=P2^0;
unsigned char compare,count;
void main()
{
	Timer0Init();
	while(1)
	{
	  
	}
}

void Timer0_Routine() interrupt 1
{
	TL0 = 0x9C;		//初始值为65435，能计数100us
	TH0 = 0xFF;		//???????
    counter++;
	count%=100;     决定了整个周期，即100*100us=10ms,等价于if语句
	if(count<compare)
	{
		LED=0;
	}
	else
	{
		LED=1;
	}
}